package com.xinyun.traceability.mapper;

import com.xinyun.traceability.enity.dto.CommodityDTO;
import com.xinyun.traceability.enity.po.Commodity;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CommodityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Commodity record);

    int insertSelective(Commodity record);

    Commodity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Commodity record);

    int updateByPrimaryKey(Commodity record);

    int updateByPrimaryKeyWithBLOBs(Commodity record);

    List<Commodity> selectByCommodityDTO(@Param("commodityDTO") CommodityDTO commodityDTO);

    Commodity selectCommodityByUuid(String uuid);
}